package oo2;

public class Driver {
	String name;

	public Driver(String n) {
		name = n;
	}

	public void drive(Car c) {
		System.out.println(name + "开着小轿车在浪。。。");
		c.run();
	}

	public void drive(Bus b) {
		System.out.println(name + "开着公交车" + b.lineNo + "养家糊口");
		b.enterStation();
		b.leaveStation();
	}
}
